package atm.design;
//定义用户类，包括：姓名、卡号、密码、余额、提取限额
public class Account {
    private String name;
    private String cardId;
    private String passWord;
    private double surplus;
    private int limit;

    public Account() {
    }

    public Account(String name, String cardId, String passWord, double surplus, int limit) {
        this.name = name;
        this.cardId = cardId;
        this.passWord = passWord;
        this.surplus = surplus;
        this.limit = limit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public double getSurplus() {
        return surplus;
    }

    public void setSurplus(double surplus) {
        this.surplus = surplus;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }
}
